﻿using System.Windows;
using GalaSoft.MvvmLight.Messaging;
using KinectCurve.Entities;

namespace KinectCurve.ViewModel
{
    public partial class MainViewModel
    {
        public void MessageDefinitions()
        {
            Messenger.Default.Register<EnumGameEnd>(this, "endGame", input =>
            {
                TimeToPlay = "00:00";
                IsGameInProgress = false;
                IsGameInProgressVisibility = Visibility.Collapsed;                
            });
        }
    }
}
